import io.*;
public class FileAppender
{

  private boolean openedOkay;
  
  public void makeFileAppender (char copType, int inID, String inLot, String inStreetN, int inPCode, String inDay, String inMonth, String inYear, String inHour, String inMin, String inGuardCmnt, String logName)
  {
    TextFile outputFile;
    outputFile = new TextFile( logName, "a");
    openedOkay = outputFile.openFile();
    outputFile.rewind();
    while (outputFile.endOfFile() == false){ 
      outputFile.newLine();
    }

    outputFile.newLine();
    outputFile.printIt(copType);
      outputFile.printIt(',');
      
      outputFile.printIt(inID);
      outputFile.printIt(',');
      
      outputFile.printIt(inLot);
      outputFile.printIt(',');
      
      outputFile.printIt(inStreetN);
      outputFile.printIt(',');
      
      outputFile.printIt(inPCode);
      outputFile.printIt(',');
      outputFile.printIt(inDay);
      outputFile.printIt(',');
      outputFile.printIt(inMonth);
      outputFile.printIt(',');
      outputFile.printIt(inYear);
      outputFile.printIt(',');
      outputFile.printIt(inHour);
      outputFile.printIt(',');
      outputFile.printIt(inMin);
      outputFile.printIt(',');
      outputFile.printIt(inGuardCmnt);

      
      outputFile.closeFile();
    }
  }
  
